﻿using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nhCore.Modbus
{
    public class StrSnCmdAnalyzer : Analyzer
    {
        public override object Analysis(object o)
        {   //字符串中的回车可能会影响界面显示            
            return System.Text.Encoding.UTF8.GetString((byte[])o).Replace("\n", "");
        }
    }
}